-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Record class, DID Manager, and Stabilize API #43
Conversation
Signed-off-by: Frank Hinek <[email protected]>
4362ce2
to
97346e1
Compare
Caused by git ignoring case
Caused by git ignoring case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice.
Main outstanding question was additional pull of the DWN (with its own version) to work in a browser which seemed a bit odd (see comment on the simple-agent.html)
The style changes seem consistent with https://google.github.io/styleguide/jsguide.html#naming-camel-case-defined - which is more rigorous thing I can find out there (took me a while to dig it up from memory). |
…k to 422 Co-authored-by: Frank Hinek <[email protected]> Co-authored-by: Devin Rousso <[email protected]>
@michaelneale FWIW, this also isn't introducing anything new that wasn't already the case in |
Signed-off-by: Frank Hinek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎖️
Signed-off-by: Frank Hinek <[email protected]>
… type Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
Signed-off-by: Frank Hinek <[email protected]>
96c7a80
to
9870e2f
Compare
…HTTP transport Signed-off-by: Frank Hinek <[email protected]>
All suggestions incorporated, commented on, or new issues opened.
Signed-off-by: Frank Hinek <[email protected]>
External API changes
web5.did.register()
withweb5.did.manager()
Record
class which greatly improves the developer experience and makes working with records and record data significantly easier.web5.dwn.records.createFrom()
as a convenience to make it easy to create a new record based on an existing record.web5.dwn.records.create()
which is an alias forweb5.dwn.records.write()
Internal function changes:
#createSignedMessage()
now takes anauthor
parameter which removes redundant data from being stored by the DidManager and a pre-req for future improvements to key management.https://github.com/TBD54566975/web5-js/blob/4362ce22d5ea77c280c1e6eb17726b6a37af51de/src/Web5.js#L80
delete
methods onStorage
class and inherited classes withremove
to make it possible to create functional storage adapters (delete
is a reserved word if used outside of class methods).Chores/Cleanup
dwn
key ID by default for ION dids created withweb5.did.create()
https://github.com/TBD54566975/web5-js/blob/4362ce22d5ea77c280c1e6eb17726b6a37af51de/src/did/methods/ion.js#L9keypair
/keyPair
discrepancy raised in case issue: keypair vs keyPair #35dwn-sdk-js
dwn-sdk-js
Note to @TBD54566975/tbd-developer-relations:
examples/
directory, which are currently used for validating/testing during development